Skip to main content

Regex

Regex (short for "regular expression") is a pattern-matching language used for searching and manipulating text. It's a sequence of characters that specifies a search pattern, which can be used to find, match, replace or extract parts of a string based on that pattern.

It allows you to define complex patterns that can match specific sequences of characters, including letters, numbers, symbols, whitespace, and even special characters. You can use regex to search for patterns, extract specific parts of a string, validate input, and replace text.

For example, the regular expression \d{3}-\d{2}-\d{4} matches a social security number in the format "###-##-####", where each "#" represents a digit. Using this regex, you could search through a document and find all instances of social security numbers that match this pattern.

Regular Expression Usage in YoBulk:

Regex can be added to any field during template creation through nocode template creation. flow

Click Enter Custom Regex, if you want to generate the regex through YoBulk AI.You can copy any regex generated from any external source.

info

Info : Please get your regex validated through Regex101 before using in YoBulk.

flow

YoBulk In-built Regex:

YoBulk has created some inbuilt Regex.It can be used against a specific dataype.

info

Info : Please use the datatype as string type if want to validate any special character.Example: if you want to check phone number with format like +91-1234555667,then please select the datatype as string.

info

Bring your own Regex:

Developers can add their regex by modifying the regexOptions variable in index.jsx file.

const regexOptions = [
{value:"custom", label:"Enter Custom Regex"},
{value:'^\\d{5}(?:[-\\s]\\d{4})?$', label:"US Zip Code"},
{value:'^\\+?[1-9][0-9]{7,14}$', label:"US Phone Number"},
{value:'/^4([0-9]{3})\\s?([0-9]{4})\\s?([0-9]{4})\\s?([0-9]{4})$/', label:"Card (MasterCard)"},
{value: '/^(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/', label:"Ip Address"},
]